<?php

namespace App\Kuafu\CustomerCoupon\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CustomerCouponCodeEnum extends BaseCodeEnum
{
    const ERR_CUSTOMERCOUPON_PARAM_VALID          = 418001;
    const ERR_CUSTOMERCOUPON_DB_ADD               = 418002;
    const ERR_CUSTOMERCOUPON_DB_SET               = 418003;
    const ERR_CUSTOMERCOUPON_DB_DEL               = 418004;
    const ERR_CUSTOMERCOUPON_DB_PATCH             = 418005;
    const ERR_CUSTOMERCOUPON_ID_NOT_EXIST         = 418006;
    const ERR_CUSTOMER_SEND_COUPON_FAIL           = 418007;
    const ERR_CUSTOMER_USED_COUPON                = 418008;
    const ERR_CUSTOMER_NOT_CAN_USE                = 418009;
    const ERR_CUSTOMER_COST_PRICE                 = 418010;
    const ERR_CUSTOMER_COUPON_HAS_RECEIVED        = 418011;
    const ERR_CUSTOMER_COUPON_RECEIVED_FAIL       = 418012;
    const ERR_SHOP_ACTIVITY                       = 418013;
    const ERR_JOINED_SHOP_START_BUSINESS_ACTIVITY = 418014;
    const ERR_JOINED_GT_LIMIT_MAX                 = 418015;
    const ERR_ACTIVITY_LOSE_EFFECTIVE             = 418016;
    const ERR_ACTIVITY_STATUS                     = 418017;
    const ERR_CUSTOMER_COUPON_NOT_EXISTS          = 418018;
    const ERR_SHOP_CUSTOMER_COUPON                = 418019;
    const ERR_CANCEL_CUSTOMER_COUPON_TIME         = 418020;
    const ERR_JOIN_BUSINESS_ACTIVITY              = 418021;
    const ERR_GET_DY_COUPON_FAIL                  = 418022;

    const CODE_TEXT = [
        self::ERR_CUSTOMERCOUPON_PARAM_VALID          => "参数校验错误",
        self::ERR_CUSTOMERCOUPON_DB_ADD               => "新增失败",
        self::ERR_CUSTOMERCOUPON_DB_SET               => "编辑失败",
        self::ERR_CUSTOMERCOUPON_DB_DEL               => "删除失败",
        self::ERR_CUSTOMERCOUPON_DB_PATCH             => "上下架失败",
        self::ERR_CUSTOMERCOUPON_ID_NOT_EXIST         => "活动信息不存在或者活动优惠券信息不存在",
        self::ERR_CUSTOMER_SEND_COUPON_FAIL           => "发放失败",
        self::ERR_CUSTOMER_USED_COUPON                => "优惠券使用非法",
        self::ERR_CUSTOMER_NOT_CAN_USE                => "优惠券不在有效期范围",
        self::ERR_CUSTOMER_COST_PRICE                 => "商品金额小于优惠券成本",
        self::ERR_CUSTOMER_COUPON_HAS_RECEIVED        => "您已参加过该类型活动，无法重复领取!",
        self::ERR_CUSTOMER_COUPON_RECEIVED_FAIL       => "领券失败",
        self::ERR_SHOP_ACTIVITY                       => "无效的活动或门店尚未参与",
        self::ERR_JOINED_SHOP_START_BUSINESS_ACTIVITY => "您已参加过该类型活动，无法重复领取",
        self::ERR_JOINED_GT_LIMIT_MAX                 => "今天来晚了，优惠券领完了~",
        self::ERR_ACTIVITY_LOSE_EFFECTIVE             => "今天来晚了，活动结束了~",
        self::ERR_ACTIVITY_STATUS                     => "活动尚未开始或已下线",
        self::ERR_CUSTOMER_COUPON_NOT_EXISTS          => "无效的优惠券",
        self::ERR_SHOP_CUSTOMER_COUPON                => "该优惠券不适用当前门店",
        self::ERR_CANCEL_CUSTOMER_COUPON_TIME         => "撤销优惠券不在有效期范围",
        self::ERR_JOIN_BUSINESS_ACTIVITY              => "您已参加过当前门店的开业活动，当前活动无法同享参与",
        self::ERR_GET_DY_COUPON_FAIL                  => "抖音服务器异常，请稍后再试~"
    ];
}
